package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName LuckyAnswerResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2016-11-11   上午11:43:25
 */
@XmlRootElement
public class LuckyAnswerResp extends SuperResp{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3897492150042421787L;
	
	private List<AnswerResultInfo> answerResultInfos;
	
	public List<AnswerResultInfo> getAnswerResultInfos() {
		return answerResultInfos;
	}

	public void setAnswerResultInfos(List<AnswerResultInfo> answerResultInfos) {
		this.answerResultInfos = answerResultInfos;
	}

	@Override
	public String toString() {
		return "LuckyAnswerResp [answerResultInfos=" + answerResultInfos + "]";
	}

	public static class AnswerResultInfo implements Serializable{
		/**
		 * 
		 */
		private static final long serialVersionUID = -8058431867991395140L;
		private long questionId;
		private Integer answerRequire = 0;
		private Integer answerResult;
		public long getQuestionId() {
			return questionId;
		}
		public void setQuestionId(long questionId) {
			this.questionId = questionId;
		}
		public Integer getAnswerRequire() {
			return answerRequire;
		}
		public void setAnswerRequire(Integer answerRequire) {
			this.answerRequire = answerRequire;
		}
		public Integer getAnswerResult() {
			return answerResult;
		}
		public void setAnswerResult(Integer answerResult) {
			this.answerResult = answerResult;
		}
		@Override
		public String toString() {
			return "AnswerResultInfo [answerRequire=" + answerRequire
					+ ", answerResult=" + answerResult + "]";
		}
	}
}

